package com.zeldu.teacher.homework;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.bind.annotation.CrossOrigin;

@SpringBootApplication
@EnableAsync
@ComponentScan(basePackages={"com.zeldu.common"})//扫描common包下的类
@ComponentScan(basePackages={"com.zeldu.teacher"})//扫描common包下的类
@EnableDiscoveryClient
public class TeacherHomeWrokApplication {
    public static void main(String[] args) {
        SpringApplication.run(TeacherHomeWrokApplication.class);
    }
}
